<template>
	<view class="s-footer">
		<u-button :type="type" :disabled="disabled" :customStyle="customStyle" :text="text"
			@click="onClick"></u-button>
	</view>
</template>

<script>
	export default {
		props: {
			customStyle: {
				type: Object,
				default: () => {
					return {
						background: '#0080ff'
					}
				}
			},
			type: {
				type: String,
				default: 'primary'
			},
			text: {
				type: String,
				default: '提交'
			},
			disabled: {
				type: Boolean,
				default: false
			}
		},
		data() {
			return {

			}
		},
		methods: {
			onClick() {
				this.$emit("onClick");
			}
		}
	}
</script>

<style>

</style>